//
// Created by dukang wang on 2025/1/4.
//

#include "malloc.h"
#include "string"
#include "../include/PcmData.h"

namespace hy {

    PcmData::PcmData(char *data, int size) {
        this->data=static_cast<char *>(malloc(size));
        memcpy(this->data,data,size);
        this->size=size;
    }

    PcmData::~PcmData(){

    }

    char *PcmData::getData() {
        return this->data;
    }

    int PcmData::getSize() {
        return size;
    }


}
